package edu.spec.teacher.service.impl;

import edu.spec.teacher.dao.iface.IUserElectDao;
import edu.spec.teacher.model.UserElect;
import edu.spec.teacher.service.iface.IUserElectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Author       : MadFrog
 * Date         : 2018/10/15 11:14
 * Description  :
 */
@Service
public class UserElectService implements IUserElectService {

    @Autowired
    private IUserElectDao userElectDao;

    @Override
    public List<UserElect> listEffectiveByUser(Integer userId) {
        return userElectDao.listEffectiveByUser(userId);
    }

    @Override
    public UserElect load(Integer id){
        return userElectDao.load(id);
    }

    @Override
    public void update(UserElect userElect) {
        userElectDao.update(userElect);
    }

}
